import request from '@/utils/request'

export const getPermissionList = () => request.get('/sys/permission')

export const addPermissionAPI = data => request.post('/sys/permission', data)

export const detailPermissionAPI = id => request.get(`/sys/permission/${id}`)

export const updatePermission = data => request.put(`/sys/permission/${data.id}`, data)

export const delPeermissionAPI = id => request.delete(`/sys/permission/${id}`)
